package com.cqwu.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CmQuestion entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "cm_question", catalog = "common")
public class CmQuestion implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer surveyId;
	private Integer questionId;
	private String title;
	private boolean isShow;

	// Constructors

	/** default constructor */
	public CmQuestion() {
	}

	/** minimal constructor */
	public CmQuestion(Integer surveyId, Integer questionId) {
		this.surveyId = surveyId;
		this.questionId = questionId;
	}

	/** full constructor */
	public CmQuestion(Integer surveyId, Integer questionId, String title,
			boolean isShow) {
		this.surveyId = surveyId;
		this.questionId = questionId;
		this.title = title;
		this.isShow = isShow;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "surveyID", nullable = false)
	public Integer getSurveyId() {
		return this.surveyId;
	}

	public void setSurveyId(Integer surveyId) {
		this.surveyId = surveyId;
	}

	@Column(name = "questionID", nullable = false)
	public Integer getQuestionId() {
		return this.questionId;
	}

	public void setQuestionId(Integer questionId) {
		this.questionId = questionId;
	}

	@Column(name = "title", length = 100)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "isShow")
	public boolean getIsShow() {
		return this.isShow;
	}

	public void setIsShow(boolean isShow) {
		this.isShow = isShow;
	}

}